package com.qumitech.visualnovel.model.dao.editor;

import java.util.Date;

public class AuthorDAO {
    private Long id;

    private Integer uid;

    private Long policyId;

    private String name;

    private String pseudonym;

    private String avatar;

    private String country;

    private String sexuality;

    private String contractType;

    private Long baseIncome;

    private Long bonusIncome;

    private Long shareIncome;

    private Date createdAt;

    private Date updatedAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Long getPolicyId() {
        return policyId;
    }

    public void setPolicyId(Long policyId) {
        this.policyId = policyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPseudonym() {
        return pseudonym;
    }

    public void setPseudonym(String pseudonym) {
        this.pseudonym = pseudonym == null ? null : pseudonym.trim();
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country == null ? null : country.trim();
    }

    public String getSexuality() {
        return sexuality;
    }

    public void setSexuality(String sexuality) {
        this.sexuality = sexuality == null ? null : sexuality.trim();
    }

    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType == null ? null : contractType.trim();
    }

    public Long getBaseIncome() {
        return baseIncome;
    }

    public void setBaseIncome(Long baseIncome) {
        this.baseIncome = baseIncome;
    }

    public Long getBonusIncome() {
        return bonusIncome;
    }

    public void setBonusIncome(Long bonusIncome) {
        this.bonusIncome = bonusIncome;
    }

    public Long getShareIncome() {
        return shareIncome;
    }

    public void setShareIncome(Long shareIncome) {
        this.shareIncome = shareIncome;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", policyId=").append(policyId);
        sb.append(", name=").append(name);
        sb.append(", pseudonym=").append(pseudonym);
        sb.append(", avatar=").append(avatar);
        sb.append(", country=").append(country);
        sb.append(", sexuality=").append(sexuality);
        sb.append(", contractType=").append(contractType);
        sb.append(", baseIncome=").append(baseIncome);
        sb.append(", bonusIncome=").append(bonusIncome);
        sb.append(", shareIncome=").append(shareIncome);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append("]");
        return sb.toString();
    }
}